home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
005
/
product.arc
/
MACRO25B.LSP
< prev
next >
Wrap
Text File
|
1986-10-20
|
1KB
|
34 lines
; This LISP file is for use with AutoCAD Ver. 2.18.
(Defun C:Raa ()
(Setvar "CMDECHO" 0)
(Setq A (Getvar "Snapang"))
(Setq B (Getvar "Orthomode"))
(Setq C (Getvar "Gridmode"))
(Setq P1 (Getpoint "\nFrom point: "))
(Prompt "\nTo point: ")
(Command "LINE" P1) (Setq P2 (Getpoint))
(Prompt "\nTo point: ")
(Setvar "Snapang" (Angle P1 P2))
(Setvar "Orthomode" 1)
(Command "" "LINE" P1 P2)
(Setq P3 (Getpoint))
(Command "" "LINE" P2 P3 (Polar P3 (Angle P2 P1)
(Distance P2 P1)) P1 "")
(Setvar "Snapang" A)
(Setvar "Orthomode" B)
(Setvar "Gridmode" C)
)
(Defun C:Paa ()
(Setvar "CMDECHO" 0)
(Setq P1 (Getpoint "\nFrom point: "))
(Prompt "\nTo point: ")
(Command "Line" P1)
(Setq P2 (Getpoint))
(Prompt "\nTo point: ")
(Command "" "LINE" P1 P2)
(Setq P3 (Getpoint))
(Command "" "Line" P2 P3 (Polar P3 (Angle P2 P1)
(Distance P2 P1)) P1 "")
)